$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;

.home {
  position: relative;
  width: 100%;

  .banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      max-height: 100vh;
    }

    .text {
      position: absolute;
      left: 0;
      top: 50%;
      width: 100%;
      text-align: center;
      transform: translateY(-50%);
      font-size: $fontSize_64;
      color: white;
      font-weight: 600;
      text-transform: uppercase;
      font-style: italic;
    }
  }

  .section {
    width: 50vw;
    margin: 4vw auto;

    .t1 {
      font-size: $fontSize_48;
      font-weight: 600;
      text-transform: uppercase;
    }

    .t2 {
      font-size: $fontSize_18;
      margin: 2vw 0;
      line-height: 1.6;
    }

    .t3 {
      font-size: $fontSize_18;
      border-bottom: 1px solid #FC0;
      display: inline-block;
      padding-bottom: 10px;
    }

    .t4 {
      font-size: $fontSize_18;
      margin-top: 2vw;
    }

    .form {
      width: calc(100% - 6vw);
      border: 4px solid #C8161E;
      padding: 3vw;
      margin: 6vw auto;

      .item {
        border: 1px solid #EDEDED;
        background: rgba(255, 255, 255, 0.00);
        box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.13);
        padding: 0 20px;
        margin-bottom: 20px;
        input,textarea{
          border: none;
          outline: none;
          width: 100%;
          padding: 15px 0;
          font-size: $fontSize_18;
          color: #878787;
          &::placeholder{
            color: #878787;
          }
        }
        textarea{
          height: 200px;
          resize: none;
          font-family: Arial,Microsoft YaHei,sans-serif;
        }
      }
      .item2{
        display: flex;
        justify-content: space-between;
        gap: 20px;
        .item{
          width: 50%;
        }
      }
      .tip{
        color: #B2B2B2;
        font-size: $fontSize_14;
        text-align: right;
      }
      .agree{
        color: #646464;
        font-size: $fontSize_18;
        margin: 1vw 0 4vw 0;
        a{
          color: #C8161E;
          text-transform: uppercase;
          text-decoration: underline;
        }
      }
      .btn{
        display: inline-block;
        cursor: pointer;
        .submit{
          font-size: $fontSize_18;
          font-weight: 700;
          color: white;
          text-transform: uppercase;
          background-color: #C8161E;
          display: flex;
          align-items: center;
          padding: 1vw 1vw;
          transition: all 600ms;
          svg{
            display: block;
            margin-left: 10px;
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .text{
        font-size: 24px;
      }
    }
    .section{
      width: 90%;
      margin: 30px auto;
      .t1{
        font-size: 20px;
      }
      .t2{
        font-size: 16px;
        margin: 10px 0;
      }
      .t3{
        font-size: 14px;
      }
      .t4{
        font-size: 14px;
        margin-top: 20px;
      }
      .form{
        width: calc(100% - 40px);
        padding: 20px;
        .item{
          margin-bottom: 10px;
          padding: 0 10px;
          input,textarea{
            font-size: 14px;
            padding: 10px 0;
          }
        }
        .item2{
          gap: 10px;
        }
        .tip{
          font-size: 14px;
        }
        .agree{
          font-size: 14px;
        }
        .btn{
          .submit{
            font-size: 14px;
            padding: 8px 10px;
            svg{
              width:10px;
            }
          }
        }
      }
    }
  }
}